<template>
  <div id="rootNode">
    <el-card id="overview" shadow="never">
      <div id="patientList">
        <div style="width: 100%">
          <div id="todayTotal" class="fl" style="width: 48%">
            <div class="totalTop">
              <div class="quantityTotal" style="width: 60%">
                <div>
                  <span
                    class="fontLv01 content_num"
                    @click="todayQuery(null, null)"
                    v-html="summaryCount.countToday"
                  >
                    0</span
                  >
                  <span class="fontLv12"> (人)</span>
                </div>
                <div class="fontLv12 pt-5 pb-5">今日总数量</div>
              </div>
              <div class=" ">
                <span class="iconTotal iconfont icon-jinrishuliang" />
              </div>
              <!-- .icon-zongshuliang -->
            </div>
            <div class="totalbtm pt-5">
              <el-row :gutter="5">
                <el-col :span="5" class="fontLv12">
                  <span
                    class="fontLv02 content_num"
                    @click="todayQuery(null, '急危')"
                    v-html="summaryCount.emergencyCount"
                  >
                    0 </span
                  >（人）
                  <div>I级-急危</div>
                </el-col>
                <el-col :span="5" class="fontLv12">
                  <span
                    class="fontLv02 content_num"
                    @click="todayQuery(null, '急重')"
                    v-html="summaryCount.actueCount"
                    >0</span
                  >（人）
                  <div>II级-急重</div>
                </el-col>
                <el-col :span="5" class="fontLv12">
                  <span
                    class="fontLv02 content_num"
                    @click="todayQuery(null, '急症')"
                    v-html="summaryCount.emergencycaseCount"
                    >0</span
                  >（人）
                  <div>III级-急症</div>
                </el-col>
                <el-col :span="5" class="fontLv12">
                  <span
                    class="fontLv02 content_num"
                    @click="todayQuery(null, '亚急')"
                    v-html="summaryCount.subacuteCount"
                    >0</span
                  >（人）
                  <div>IV级-亚急症</div>
                </el-col>
                <el-col :span="4" class="fontLv12">
                  <span
                    class="fontLv02 content_num"
                    @click="todayQuery(null, '非急')"
                    v-html="summaryCount.nonurgentCount"
                    >0</span
                  >（人）
                  <div>IV级-非急症</div>
                </el-col>
              </el-row>
            </div>
          </div>
          <div style="width: 4%" class="fl">
            <div class="totalLine" />
          </div>
          <div id="allTotal" class="fl" style="width: 48%">
            <div class="totalTop">
              <div class="quantityTotal" style="width: 60%">
                <div>
                  <span
                    class="fontLv01 content_num"
                    @click="allQuery(null, null)"
                  >
                    {{ summaryCountAll.countTotal }}
                  </span>
                  <span class="fontLv12"> (人)</span>
                </div>
                <div class="fontLv12 pt-5 pb-5">总数量</div>
              </div>
              <div class=" ">
                <span class="iconTotal iconfont icon-zongshuliang" />
              </div>
            </div>
            <div class="totalbtm pt-5">
              <el-row :gutter="5">
                <el-col :span="3" class="fontLv12">
                  <span
                    class="fontLv02 content_num"
                    @click="allQuery(null, '急危')"
                    v-html="summaryCount.emergencyCount"
                  >
                    0 </span
                  >(人)
                  <div>I级-急危</div>
                </el-col>
                <el-col :span="3" class="fontLv12">
                  <span
                    class="fontLv02 content_num"
                    @click="allQuery(null, '急重')"
                    v-html="summaryCount.emergencyCount"
                  >
                    0 </span
                  >(人)
                  <div>II级-急重</div>
                </el-col>
                <el-col :span="3" class="fontLv12">
                  <span
                    class="fontLv02 content_num"
                    @click="allQuery(null, '急症')"
                    v-html="summaryCount.emergencyCount"
                  >
                    0 </span
                  >(人)
                  <div>III级-急症</div>
                </el-col>
                <el-col :span="3" class="fontLv12">
                  <span
                    class="fontLv02 content_num"
                    @click="allQuery(null, '亚急')"
                    v-html="summaryCount.emergencyCount"
                  >
                    0 </span
                  >(人)
                  <div>IV级-亚急症</div>
                </el-col>
                <el-col :span="3" class="fontLv12">
                  <span
                    class="fontLv02 content_num"
                    @click="allQuery(null, '非急')"
                    v-html="summaryCount.emergencyCount"
                  >
                    0 </span
                  >(人)
                  <div>IV级-非急症</div>
                </el-col>
              </el-row>
            </div>
          </div>
        </div>
      </div>
    </el-card>
    <el-card id="queryForm" shadow="never">
      <div id="queryCriteria">
        <el-form
          ref="queryForm"
          :inline="true"
          :model="queryParam"
          class="demo-form-inline"
        >
          <el-form-item label="时间范围" class="marginR20" prop="timeRange">
            <el-date-picker
              v-model="queryParam.timeRange"
              type="datetimerange"
              range-separator="至"
              start-placeholder="开始日期"
              end-placeholder="结束日期"
              value-format="yyyy-MM-dd HH:mm:ss"
              clearable
            />
          </el-form-item>
          <el-form-item label="姓名" class="marginR20" prop="name"
            ><el-input
              v-model="queryParam.name"
              placeholder="姓名"
              clearable
              @keyup.enter.native="queryList"
          /></el-form-item>
          <el-form-item label="患者编号" class="marginR20" prop="patientId"
            ><el-input
              v-model="queryParam.patientId"
              placeholder="患者编号"
              clearable
              @input="
                queryParam.patientId = queryParam.patientId.replace(
                  /[^\d]/g,
                  ''
                )
              "
              @keyup.enter.native="queryList"
          /></el-form-item>
          <el-form-item label="分诊等级" class="marginR20" prop="triageLevel">
            <el-select
              v-model="queryParam.triageLevel"
              placeholder="请选择"
              clearable
            >
              <el-option label="全部" value="" />
              <el-option label="急危" value="急危" />
              <el-option label="急重" value="急重" />
              <el-option label="急症" value="急症" />
              <el-option label="亚急" value="亚急" />
              <el-option label="非急" value="非急" />
            </el-select>
          </el-form-item>

          <el-form-item class="fr">
            <!-- <el-button>高级查询</el-button> -->
            <el-button @click="activeNames = !activeNames">高级查询</el-button>
            <el-button type="primary" @click="queryList()">搜索</el-button>
            <el-button @click="queryClear()">重置</el-button>
          </el-form-item>
          <el-collapse-transition>
            <div v-show="activeNames" class="advancedQuery">
              <el-form-item
                label="来院方式"
                class="marginR20"
                prop="comwaycode"
              >
                <el-select
                  v-model="queryParam.comwaycode"
                  placeholder="请选择"
                  clearable
                >
                  <el-option label="全部" value="" />
                  <el-option label="自行来院" value="1" />
                  <el-option label="转院" value="2" />
                  <el-option label="呼叫120" value="3" />
                  <el-option label="转院(平车)" value="4" />
                </el-select>
              </el-form-item>
              <!-- 自行来院(步行)
               自行来院(轮椅)
               自行来院(扶走)
               呼叫120
               转院(平车) -->
              <el-form-item label="性别" class="marginR20" prop="sex">
                <el-select
                  v-model="queryParam.sex"
                  placeholder="请选择"
                  clearable
                >
                  <el-option label="全部" value="" />
                  <el-option label="男" value="男" />
                  <el-option label="女" value="女" />
                </el-select>
              </el-form-item>
              <el-form-item label="年龄段" class="ageWidth" label-width="60px">
                <el-form-item prop="agestart" class="fl" style="width: 40%">
                  <el-input
                    v-model="queryParam.agestart"
                    placeholder=""
                    clearable
                    @input="
                      queryParam.agestart = queryParam.agestart.replace(
                        /[^\d]/g,
                        ''
                      )
                    "
                  >
                    <template slot="append">岁</template>
                  </el-input>
                </el-form-item>
                <el-form-item class="fl"> 至 </el-form-item>
                <el-form-item prop="ageend" class="fl" style="width: 40%">
                  <el-input
                    v-model="queryParam.ageend"
                    placeholder=""
                    clearable
                    @input="
                      queryParam.ageend = queryParam.ageend.replace(
                        /[^\d]/g,
                        ''
                      )
                    "
                  >
                    <template slot="append">岁</template>
                  </el-input>
                </el-form-item>
              </el-form-item>
              <el-form-item label="费别" class="marginR20" prop="cost">
                <el-select
                  v-model="queryParam.cost"
                  placeholder="请选择"
                  clearable
                >
                  <el-option label="全部" value="" />
                  <el-option label="自费" value="自费" />
                  <el-option label="公费" value="公费" />
                  <el-option label="军免" value="军免" />
                  <el-option label="当地社保" value="当地社保" />
                </el-select>
              </el-form-item>
              <el-form-item
                label="分诊去向"
                class="marginR20"
                prop="destination"
              >
                <el-select
                  v-model="queryParam.destination"
                  placeholder="请选择"
                  clearable
                >
                  <el-option label="全部" value="" />
                  <el-option
                    v-for="item in departmentList"
                    :key="item.id"
                    :label="item.name"
                    :value="item.name"
                  />
                </el-select>
              </el-form-item>
            </div>
          </el-collapse-transition>
        </el-form>
      </div>
      <div id="queryTable" style="clear: both">
        <el-tabs v-model="tabCheck" type="border-card" @tab-click="handleClick">
          <el-tab-pane label="分诊中" name="-2" />
          <el-tab-pane label="分诊完成" name="0" />
          <el-tab-pane label="胸痛" name="胸痛" />
          <el-tab-pane label="卒中" name="卒中" />
          <el-tab-pane label="创伤" name="创伤" />
          <el-tab-pane label="孕产妇" name="孕产妇" />
          <el-tab-pane label="新生儿" name="新生儿" />
          <el-tab-pane label="中毒" name="中毒" />
          <el-tab-pane label="呼吸" name="呼吸" />
          <el-tab-pane label="全部" name="all" />

          <div id="tableData" style="">
            <el-table
              id="out-table"
              :data="tableData"
              style="width: 100%"
              border
            >
              <!-- <el-table-column type="selection" width="55" align="center" /> -->
              <el-table-column type="index" width="60" align="center">
                <template slot-scope="scope" align="center">
                  {{ (page - 1) * limit + scope.$index + 1 }}
                </template>
              </el-table-column>
              <el-table-column
                prop="incidentDateTime"
                label="发病时间"
                align="center"
              />
              <el-table-column
                prop="arrivalTime"
                label="到院时间"
                align="center"
              />
              <el-table-column
                prop="patientId"
                label="患者编号"
                align="center"
              />
              <el-table-column prop="name" label="患者姓名" align="center" />
              <el-table-column prop="sex" label="性别" align="center" />
              <el-table-column prop="age" label="年龄" align="center" />
              <el-table-column
                prop="beaconId"
                label="腕带编号"
                align="center"
              />
              <el-table-column
                prop="mewsResult"
                label="MEWS结果"
                align="center"
              />
              <el-table-column
                prop="triageLevel"
                label="分诊等级"
                align="center"
              />
              <!-- <el-table-column prop="xxxxx" label="分诊类型" align="center" /> -->
              <el-table-column
                prop="greenType"
                label="绿色通道"
                align="center"
              />
              <el-table-column
                prop="triageTime"
                label="分诊时间"
                align="center"
              />
              <el-table-column
                prop="departmentName"
                label="分诊去向"
                align="center"
              />
              <el-table-column
                prop="timeConsume"
                label="分诊耗时"
                align="center"
              />
              <el-table-column prop="costCat" label="费别" align="center" />
              <el-table-column
                prop="contactPhone"
                label="患者电话"
                align="center"
              />
              <el-table-column
                prop="comwaycode"
                label="来院方式"
                align="center"
              />
              <el-table-column
                fixed="right"
                label="操作"
                width="150"
                align="center"
              >
                <template slot-scope="scope">
                  <el-button
                    size="mini"
                    class="mr-10"
                    type="text"
                    @click="checkRecords(scope.row)"
                    >查看</el-button
                  >
                </template>
              </el-table-column>
            </el-table>
            <el-pagination
              class="pagination"
              :current-page.sync="page"
              :page-sizes="[10, 20, 30, 40, 50, 60, 70, 80, 90]"
              :page-size.sync="limit"
              layout="sizes, prev, pager, next ,total"
              :total="count"
              background
              @size-change="handleSizeChange"
              @current-change="handleCurrentChange"
            />
          </div>
        </el-tabs>
        <div class="tableBtnGroup">
          <el-button plain size="mini" @click="jumpRouterAdd()">
            新增分诊
          </el-button>
          <el-button plain size="mini" @click="jumpRouterInjury()">
            群伤管理
          </el-button>
        </div>
      </div>
    </el-card>
  </div>
</template>
<script>
import {
  queryListGet,
  queryConsultationListGet,
  dispatcheACSSummaryCounts,
  dispatcheCISSummaryCounts,
  dispatcheACSSummaryCountsToday,
  dispatcheCISSummaryCountsToday,
  updateAttention
} from '@/api/green-channel/patients-list'
import {
  selectTableList,
  dispatcheTriageSummaryCounts,
  dispatcheTriageSummaryCountsToday,
  getDepartmentList
} from '@/api/triage/triage-list'

export default {
  // name: 'GreenChannel',
  data() {
    return {
      hospitalId: this.$store.getters.hospitalId,
      userId: this.$store.getters.userId,
      apiToken: this.$store.getters.apiToken,
      tabCheck: '-2',
      page: 1,
      limit: 10,
      count: 0,
      queryParam: {
        timeRange: [], // 时间范围
        name: '', // 姓名
        patientId: '', // 患者编号
        triageLevel: '', // 分诊等级，参数：急危、急重、急症、亚急、非急
        comwaycode: '', // 来院方式
        sex: '', // 性别
        agestart: '', // 年龄段(小)
        ageend: '', // 年龄段(大)
        // greenType: '', // 绿道类型（汉字）参数:胸痛、卒中、创伤、呼吸、危重孕产妇、新生儿、中毒、其他
        cost: '', // 费别
        destination: '' // 分诊去向：
      },
      activeNames: false, // 高级查询区域显示
      summaryCount: {
        countToday: 0,
        emergencyCount: 0,
        actueCount: 0,
        emergencycaseCount: 0,
        subacuteCount: 0,
        nonurgentCount: 0
      },
      summaryCountAll: {
        countTotal: 0,
        emergencyCount: 0,
        actueCount: 0,
        emergencycaseCount: 0,
        subacuteCount: 0,
        nonurgentCount: 0
      },
      tableData: [], // 表格数据源
      departmentList: [] ,// 科室列表

      sourceData: {} // 页面跳转传来的数据
    }
  },
  computed: {},
  created() {
    this.JumpJudgment()
    this.selectDepartmentList()
  },
  mounted() {
    this.queryList()
    this.queryCounts()
  },
  methods: {
    /*
      *跳转判断
      * 接收跳转值并进入新增分诊页面
    */
    JumpJudgment() {
      this.sourceData = this.$route.params
      if(this.sourceData.diseaseType === ''){this.sourceData.diseaseType = 'all'}
      // console.log('接收跳转数据', this.sourceData)
      if (this.sourceData.sourcePage) {
        this.queryParam.patientId = this.sourceData.patientId || ''
      }
      if (this.sourceData.sourcePage === 'FileManagement') {
        this.tabCheck = 'all'
        const tab = {
          name: 'all'
        }
        this.handleClick(tab)
      }
    },

    // 查询科室
    selectDepartmentList() {
      const params = {
        hospitalId: this.hospitalId
      }
      getDepartmentList(params).then((res) => {
        this.departmentList = res.data
        console.log(res)
      })
    },

    /*
     *页面上方快捷查询(今)
     * triageLevel: 分诊去向
     */
    todayQuery(isUpload, triageLevel) {
      this.clearPagination()
      this.tabCheck = 'all'
      this.queryClear()
      const date = new Date()
      const year = date.getFullYear() // 获取完整的年份(4位,1970)
      const month = date.getMonth() + 1 // 获取月份(0-11,0代表1月,用的时候记得加上1)
      const day = date.getDate() // 获取日(1-31)
      const startTime = `${year}-${month}-${day} 00:00:00`
      const endTime = `${year}-${month}-${day} 23:59:59`
      this.queryParam.timeRange = [startTime, endTime]
      if (triageLevel !== null) {
        this.queryParam.triageLevel = triageLevel
      }
      this.queryList()
    },
    /*
     *页面上方快捷查询(总)
     * triageLevel: 分诊去向
     */
    allQuery(isUpload, triageLevel) {
      this.clearPagination()
      this.tabCheck = 'all'
      this.queryClear()
      if (triageLevel !== null) {
        this.queryParam.triageLevel = triageLevel
      }
      this.queryList()
    },
    clearPagination() {
      this.page = 1
      this.limit = 10
      this.count = 0
    },
    // 查询今日及总数的五类数据
    queryCounts() {
      const data = {
        userId: this.userId,
        isOpen: '-1'
      }
      dispatcheTriageSummaryCountsToday(data).then((res) => {
        this.summaryCount = res
      })
      dispatcheTriageSummaryCounts(data).then((res) => {
        this.summaryCountAll = res
      })
    },

    checkRecords(data) {
      // console.log('dispatchId', data.dispatchId)
      // this.$emit('homePageToFather', data, this.consultationCheck)
      this.$router.push({
        path: 'triage-new',
        query: {
          dispatchId: data.dispatchId,
          medicalId: data.medicalId,
          patientId: data.patientId
        }
      })
    },
    handleSizeChange(val) {
      this.queryList()
      console.log(`每页 ${val} 条`)
    },
    handleCurrentChange(val) {
      this.queryList()
      console.log(`当前页: ${val}`)
    },
    handleClick(tab, event) {
      this.clearPagination()
      this.queryList()
      console.log(tab.name, event)
    },
    queryClear() {
      this.$refs['queryForm'].resetFields()
    },
    queryList(isUpload, detailType) {
      const loading = this.$loading({
        lock: true, // lock的修改符--默认是false
        text: 'Loading', // 显示在加载图标下方的加载文案
        spinner: 'el-icon-loading', // 自定义加载图标类名
        // background: 'rgba(0, 0, 0, 0.7)', // 遮罩层颜色
        target: document.querySelector('#rootNode') // loadin覆盖的dom元素节点
      })
      // Integer isOpen  分诊中 -2 分诊完成0 其他绿道类型传 -1
      let isOpen = ''
      let greenType = ''

      if (this.tabCheck === '-2' || this.tabCheck === '0') {
        isOpen = this.tabCheck
      } else {
        isOpen = '-1'
        if (this.tabCheck === 'all') {
          greenType = ''
        } else {
          greenType = this.tabCheck
        }
      }
      const params = {
        isOpen: isOpen,
        limit: this.limit,
        page: this.page,
        userId: this.userId,
        hospitalId: this.hospitalId,
        name: this.queryParam.name, // 姓名
        patientId: this.queryParam.patientId, // 患者编号
        datestart: this.queryParam.timeRange
          ? this.queryParam.timeRange[0]
          : '', // 开始时间
        dateend: this.queryParam.timeRange ? this.queryParam.timeRange[1] : '', // 结束时间
        comwaycode: this.queryParam.comwaycode, // 来院方式
        sex: this.queryParam.sex, // 性别
        agestart: this.queryParam.agestart, // 年龄段(小)
        ageend: this.queryParam.ageend, // 年龄段(大)
        greenType: greenType, // 绿道类型
        triageLevel: this.queryParam.triageLevel, // 分诊等级
        cost: this.queryParam.cost, // 费别
        destination: this.queryParam.destination // 科室名称，需要调用接口查
      }

      // queryListGet(params).then(res => {
      selectTableList(params).then((res) => {
        this.tableData = res.data || []
        if (!!res.data && res.data.length !== 0) {
          this.count = parseInt(res.count)

          // 如果是其他页面跳转过来,即查看患者详细信息
          if (this.sourceData.sourcePage) {
            this.sourceData = {}
            // this.$route.params = {}
            this.checkRecords(res.data[0])
            // console.log('meila--------')
          }
        } else {
          this.$message.warning('无符合条件的患者信息')
        }
        // 成功回调函数停止加载
        loading.close()
      })
      this.queryCounts()
    },
    jumpRouterAdd() {
      this.$router.push({ path: 'triage-new' })
    },
    jumpRouterInjury() {
      this.$router.push({ path: 'injury-group' })
    }
  }
}
</script>
<style scoped>
.marginR20 {
  margin-right: 20px;
}
#rootNode {
  background-color: #f2f2f2;
}
#overview {
  border-bottom: 10px solid #f2f2f2;
}
#patientList {
  /* width: 80%; */
}
#patientList .patientData {
  width: 300px;
  height: 70px;
  margin-right: 20px;
  border-radius: 3px;
  line-height: 70px;
  display: inline-block;
}
#patientList .patientData .el-card__body {
  padding: 0px;
}
#patientList .patientData .patientIcon {
  border-radius: 5px;
  display: inline;
  float: left;
  font-size: 28px;
  width: 40px;
  height: 40px;
  margin: 15px 0px 0px 20px;
  padding: 0px 6px;
  line-height: 40px;
  color: white;
}
.qbsbsl {
  background-color: #457be9;
}
.ysbsl {
  background-color: #4ca1fe;
}
.wsbsl {
  background-color: #f85d61;
}
.title_gailan_left_span {
  float: left;
  color: #454c5f;
  font-size: 16px;
  margin-left: 10px;
}
.title_gailan_right_span {
  float: right;
  color: #454c5f;
  font-size: 28px;
  margin-right: 10px;
}
.content_num {
  cursor: pointer;
  cursor: hand;
  text-decoration: underline;
}
.title_gailan_right_inner_span {
  position: relative;
  font-size: 16px;
  top: -3px;
  /* line-height: 35px; */
}
.summary_div {
  margin-top: 20px;
  padding-bottom: 20px;
  /* border-bottom: 10px solid #f2f2f2; */
  width: auto;
}
.seven_part {
  display: inline-block;
  width: 210px;
  border-radius: 4em;
  line-height: 40px;
  /* position: relative; */
  margin-left: 0.5%;
}
.seven_part_left_span {
  float: left;
  position: relative;
  left: 10px;
  color: #fff;
  font-size: 14px;
}
.seven_part_right_span {
  float: right;
  position: relative;
  right: 10px;
  color: #fff;
  font-size: 20px;
}
.seven_part_right_inner_span {
  position: relative;
  font-size: 14px;
  top: -3px;
}

/* @media screen and (max-width: 1366px) and (min-width: 0px) { */

.border-blue {
  display: inline-block;
  width: 3px;
  background-color: #4ca3ff;
}

.seven_part {
  display: inline-block;
  width: 13.28%;
  border-radius: 4em;
  line-height: 30px;
  position: relative;
  margin-left: 0.7%;
}

.seven_part_left_span {
  float: left;
  position: relative;
  left: 5px;
  color: #fff;
  font-size: 12px;
}

.seven_part_right_span {
  float: right;
  position: relative;
  right: 5px;
  color: #fff;
  font-size: 20px;
}

.seven_part_right_inner_span {
  position: relative;
  font-size: 12px;
  top: 0px;
}

.summary_div {
  margin-top: 10px;
  padding-bottom: 10px;
  /* border-bottom: 10px solid #f2f2f2; */
  width: auto;
}

.title {
  margin: 10px 20px;
}

.tab_div {
  margin-left: 20px;
  margin-top: 10px;
}

.tab_content_div {
  margin-top: 10px;
}

.title_gailan {
  width: 20%;
  height: 40px;
  margin-right: 4%;
  border: 1px solid #454c5f;
  border-radius: 5px;
  line-height: 40px;
  display: inline-block;
}

.title_gailan_left_span {
  float: left;
  position: relative;
  left: 5px;
  color: #454c5f;
  font-size: 12px;
}

.title_gailan_right_span {
  float: right;
  position: relative;
  right: 5px;
  color: #454c5f;
  font-size: 12px;
}

.title_gailan_right_inner_span {
  position: relative;
  font-size: 12px;
  top: 0px;
}

.qbsbsl {
  border-radius: 5px;
  display: inline;
  float: left;
  font-size: 20px;
  width: 30px;
  height: 30px;
  margin: 5px 0px 0px 10px;
  padding: 0px 5px;
  line-height: 30px;
  background-color: #457be9;
  color: white;
}

.ysbsl {
  border-radius: 5px;
  display: inline;
  float: left;
  font-size: 20px;
  width: 30px;
  height: 30px;
  margin: 5px 0px 0px 10px;
  padding: 0px 5px;
  line-height: 30px;
  background-color: #4ca1fe;
  color: white;
}

.wsbsl {
  border-radius: 5px;
  display: inline;
  float: left;
  font-size: 20px;
  width: 30px;
  height: 30px;
  margin: 5px 0px 0px 10px;
  padding: 0px 5px;
  line-height: 30px;
  background-color: #f85d61;
  color: white;
}
/* } */
</style>
<style>
path {
  fill: inherit !important;
}
#queryTable {
  position: relative;
}
#queryTable .el-tabs__header {
  margin-bottom: 0;
}
#queryTable .tableBtnGroup {
  display: inline-block;
  position: absolute;
  right: 10px;
  top: 6px;
  color: #000000;
}
#queryTable .tableBtnGroup button {
  margin-right: 10px;
}
/* 顶部统计样式 */
#todayTotal,
#allTotal {
  color: #ffffff;
  border-radius: 10px;
  padding: 15px 20px 15px;
}
#todayTotal {
  background-color: #5ca4ff;
}
#allTotal {
  background-color: #68cda5;
}
.totalTop {
  position: relative;
  /* padding: 0 2px 3px; */
  border-bottom: 3px solid #ffffff;
}
.totalbtm {
  font-weight: 100;
}
.iconTotal {
  position: absolute;
  right: 5px;
  top: 0;
  font-size: 37px;
}
.fontLv01 {
  font-size: 25px;
}
.fontLv02 {
  font-size: 18px;
}
.fontLv12 {
  font-size: 12px;
}
.totalLine {
  width: 49%;
  height: 100px;
  margin: 15px 0;
  border-right: 1px solid #eff6ff;
}
.quantityTotal {
  display: inline-block;
  width: 15%;
}
/* 顶部统计样式-End */

.advancedQuery {
  padding: 20px 0 0 10px;
  background-color: #eee;
  margin-bottom: 10px;
  border-radius: 5px;
}
.ageWidth {
  width: 20%;
}
.ageWidth > .el-form-item__content {
  width: calc(100% - 60px);
}
/* 表头错位问题-Start */
body .el-table th.gutter {
  display: table-cell !important;
}
body .el-table colgroup.gutter {
  display: table-cell !important;
}
.el-table .warning-row {
  background: oldlace;
}
.el-table .success-row {
  background: #f0f9eb;
}
/* 表头错位问题-End */
</style>
